package com.designMode.Decorator;


public class Test {
    public static void main(String[] args) {

        Powder powder = new Fish(new Egg(new Powder()));
        //动态的装饰对象，多态的魅力，
        System.out.println(powder.cost());
    }
}
